<?php
/*
	Copyright 2006, 2007, 2008, 2009, 2010 Bastiaan Grutters
    
    This file is part of Ages of Strife website.

    Ages of Strife website is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Ages of Strife website is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Ages of Strife website.  If not, see <http://www.gnu.org/licenses/>.
 */
include_once( "../global/old_database_connection.php" );
$query999 = "SELECT gold, iron, coal, food, recruits " .
		"FROM ruler " .
		"WHERE ruler_id = " . $_SESSION[ 'ruler_id' ];
$result999 = mysql_query( $query999 ) or die( "Query failed : " . mysql_error() );
$row999 = mysql_fetch_array( $result999, MYSQL_ASSOC );
?>
				<table id="resources">
					<tr id="even">
						<td><?php transprint( 'Gold' ); ?>:</td>
						<td align="right">
							<strong class="gold"><?php print( number_format( $row999[ 'gold' ] ) );  ?></strong>
						</td>
					</tr>
					<tr id="even">
						<td><?php transprint( 'Iron' ); ?></td>
						<td align="right">
							<strong class="iron"><?php print( number_format( $row999[ 'iron' ] ) ); ?></strong>
						</td>
					</tr>
					<tr id="even">
						<td><?php transprint( 'Coal' ); ?></td>
						<td align="right">
							<strong class="coal"><?php print( number_format( $row999[ 'coal' ] ) ); ?></strong>
						</td>
					</tr>
					<tr id="even">
						<td><?php transprint( 'Food' ); ?></td>
						<td align="right">
							<strong class="food"><?php print( number_format( $row999[ 'food' ] ) ); ?></strong>
						</td>
					</tr>
					<tr id="even">
						<td><?php transprint( 'Reserves' ); ?></td>
						<td align="right"><strong class="recruits"><?php print( number_format( $row999[ 'recruits' ] ) ); ?></strong></td>
					</tr>
				</table>
